package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.itheima.reggie.domain.Setmeal;

import java.util.List;

public interface SetmealService {
    //分页查询
    Page<Setmeal> findByPage(String name, Integer pageNum, Integer pageSize);

    //保存
    void save(Setmeal setmeal);

    //根据ids删除
    void deleteByIds(Long[] ids);

    //查询
    Setmeal selectById(long id);

    //更新
    void update(Setmeal setmeal);

    //停用/启用方法
    void status(Integer status, List<Long> ids);

    //查询方法
    List<Setmeal> findList(long categoryId, Integer status);
}
